#!/bin/python3
# -*- coding: utf-8 -*-
# matplotlib.py
# @author 刘秋
# @email lq@aqiu.info
# @description
# @created 2019-08-22T14:13:03.431Z+08:00
# @last-modified 2020-05-11T16:16:11.134Z+08:00
#
import numpy as np
from matplotlib import pyplot as plt

# import matplotlib

# 支持中文
plt.rcParams['font.sans-serif'] = ['SimHei']  # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False  # 用来正常显示负号

x = np.arange(1, 11)
y = 2 * x + 5
plt.title("菜鸟教程 - 测试")

plt.xlabel("x 轴")
plt.ylabel("y 轴")
plt.plot(x, y)
plt.show()
